<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> 
<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib uri="http://java.sun.com/jstl/core_rt" prefix="c"%> 
<html>
<head>
<%@ include file="common.jsp" %>
<link type="text/css" rel="stylesheet" href="<%=rootPath %>/css/manage/selectResult.css"/>
<title>吐槽查询结果</title>
</head>

<body>
    <jsp:include page="./menu.jsp"></jsp:include>
    <div id="body">
        <div id="navTop">
            <div class="bg_left"></div>
            <div class="bg_main"></div>
            <div class="bg_right"></div>
        </div>
        <div id="userManager">
            <table width="100%" cellpadding="0" cellspacing="0" border="0" class="maintable">
                <tr>
                    <th colspan="4" align="left" valign="middle">
                        <table cellpadding="0" cellspacing="0">
                            <tr>
                                <th>
                                    <span id="search_icon" class="search_icon"></span>
                                </th>
                                <th height="30px">
                                    <span style="margin-left: 2px;">查询条件</span>
                                </th>
                            </tr>
                        </table>
                    </th>
                </tr>
                <tr>
                    <td>
                        <form id="logViewForm" method="post" name="logViewForm" action="/managers/complainCount.mge" title=''>
                            <table width="100%" cellpadding="0" cellspacing="0" border="0" >
                                <tr>
                                    <td align="left">
                                        <table cellpadding="0" cellspacing="0" border="0">
                                            <tr>
                                                <td width="100px" bgcolor="#DDDDDD"><span>工号：</span></td>
                                                <td><input type="text"  id='empId' name="empId" value="${reviewVo.empId}" placeholder="工号" style="width:178px" class="datepicker" /></td>
                                                <td class="BLANK_TD"></td>
                                                <td width="100px" bgcolor="#DDDDDD"><span>姓名：</span></td>
                                                <td width="5px"></td>
                                                <td><input type="text"  id='emp_name' name="emp_name"  value="${reviewVo.emp_name}" placeholder="姓名" style="width:178px" class="datepicker" /></td>
                                            </tr>
                                            <tr>
                                                <td width="100px" bgcolor="#DDDDDD"><span>起始时间：</span></td>
                                               
                                                <td><input type="text" readonly="readonly" value="${reviewVo.startDate}" id='startDate' name="startDate" style="width:178px" class="datepicker" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
                                                <td class="BLANK_TD"></td>
                                                <td width="100px" bgcolor="#DDDDDD"><span>结束时间：</span></td>
                                                <td width="5px"></td>
                                                <td><input type="text" readonly="readonly" value="${reviewVo.endDate}" id='endDate' name="endDate" style="width:178px" class="datepicker" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})"/></td>
                                            </tr>
                                             <tr>
                                                <td class="BLANK_TD"></td>
                                                
                                                
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                                <tr>
                                    <th colspan="6" align="right">
                                        <input id="search" type="button" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false" value="查 询" onclick="select1()" onmouseover="this.style.background='#FFF18B'" onmouseout="this.style.background='#F1EDD2'"/>
                                        <input id="reset" type="button" class="ui-button ui-widget ui-state-default ui-corner-all" role="button" aria-disabled="false" onclick="resetConditions()" value="重置" onmouseover="this.style.background='#FFF18B'" onmouseout="this.style.background='#F1EDD2'"/> 
                                        <!--  <input id="export" type="button" class="ui-button ui-widget ui-state-default ui-corner-all" role="button"  aria-disabled="false" value="导出" onmouseover="this.style.backgroundColor='#F5EBA9'" onmouseout="this.style.backgroundColor='#DDDDDD'"/> -->         
                                    </th>
                                </tr>
                            </table>
                        </form>
                    </td>
                </tr>
                <tr>
                    <th colspan="6">
                        <table cellpadding="0" cellspacing="0" border="0">
                            <tr>
                                <th>
                                    <span id="search_icon1" class="search_icon"></span>
                                </th>
                                <th height="30px" >
                                    <span style="margin-left: 2px;"> 查询结果</span>                              
                                </th>
                            </tr>
                            <tr>
                                <table class="admintable" width="100%" style="margin:auto;">
                                    <tr>
                                        <th class="adminth">工号</th>
                                        <th class="adminth">吐槽人</th>
                                        <th class="adminth_dept">吐槽内容</th>
                                        <th class="adminth">创建时间</th>
                                    </tr>
                                    <c:forEach items="${ret.rows}" var="userComplain" varStatus="s">
                                        <tr style="background-color: <c:if test="${s.index%2==0 }">#F7F4D8</c:if><c:if test="${s.index%2!=0 }">#FFF</c:if>">
                                            <td>${userComplain.empId}</td>
                                            <td>${userComplain.complainName}</td>
                                            <td>${userComplain.endPlateCon}</td>
                                            <td>${userComplain.create_time}</td>
                                        </tr>
                                    </c:forEach>
                                </table>
                            </tr>
                        </table>
                    </th>
                </tr>
                <tr>
                    <form id="pageForm" name="pageForm" action="" method="post">
                        <input id="empId" type="hidden" name="empId" value="${reviewVo.empId}"/>
                        <input id="startDate" type="hidden" name="startDate" value="${reviewVo.startDate}"/>
                        <input id="endDate" type="hidden" name="endDate" value="${reviewVo.endDate}"/>
                        <input id="emp_name" type="hidden" name="emp_name" value="${reviewVo.emp_name}"/>
                        <input id="pageNo" type="hidden" name="pageNo" value="${ret.pageNo}"/>
                        <input id="pageSize" type="hidden" name="pageSize" value="${ret.pageSize}"/>
                        <br />
                        <a style="margin-left:350px; color:#000;text-decoration:none;" href="#" onclick=upPageChange()>上一页</a>   <a style="margin-left:160px;text-decoration:none;color:#000;" href="#" onclick=downPageChange()>下一页</a>
                    </form>
                    <script type="text/javascript">
                        function upPageChange(){
                            var pageNo = document.getElementById("pageNo").value;
                            document.getElementById("pageNo").value= pageNo-1;
                            pageForm.action=rootPath + "/managers/complainCount.mge";
                            pageForm.target="_self";
                            pageForm.submit();
                        }
                        function downPageChange(){
                            var pageNo = document.getElementById("pageNo").value;
                            document.getElementById("pageNo").value= parseInt(pageNo)+1;
                            pageForm.action=rootPath + "/managers/complainCount.mge";
                            pageForm.target="_self";
                            pageForm.submit();
                        }
                        function resetConditions(){
                            document.getElementById("empId").value="";
                            document.getElementById("startDate").value='';
                            document.getElementById("endDate").value='';
                            document.getElementById("emp_name").value="";
                        }
                    </script>
                </tr>
        </div>
    </div>
    <jsp:include page="./footer.jsp"></jsp:include>
    <script type="text/javascript">
        function select1(){
            logViewForm.action=rootPath + "/managers/complainCount.mge";
            //alert(selectForm.action);
            logViewForm.target="_self";
            logViewForm.submit();
        }
    </script> 
</body>
</html>
